package cn.yu.meeting.user.mapper;

import cn.yu.meeting.user.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    @Select("select * from user where account=#{account}")
    User findByAccount(String account);

    @Insert("insert into user(account,pwd) values(#{account},#{pwd})")
    void add(String account, String pwd);
}
